package io.vincentwinner.systeminfoapi.dao;

import io.vincentwinner.toolset.os.Disk;

import java.util.List;

/**
 * 磁盘信息
 */
public interface IDiskDao {

    List<Disk.DiskHardwareInfo> getDiskHardwareInfos();

    Long getTotalSpace(int diskNum);

    Long getFreeSpace(int diskNum);

    Long getUsedSpace(int diskNum);

    Double getUsage(int diskNum);

    default Integer getDiskNum(){
        return getDiskHardwareInfos().size();
    }

}
